package com.rttmall.shopbackend.app.controller;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.rttmall.shopbackend.app.service.SessionService;

@Controller
public class SampleController {

    @Autowired
    private SessionService sessionService;
	@RequestMapping("/")
    @ResponseBody
    public String home(HttpSession session) {
		int userId = sessionService.getUserId(session);
        return "Hello World!";
    }
}
